#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

#include<QAudioRecorder>
#include<QUrl>
#include<QAudioProbe>

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private:
    QAudioRecorder *audioRecorder;
    QAudioProbe *audioProbe;

private slots:
    void calculateLevel(const QAudioBuffer &buffer);

};
#endif // WIDGET_H
